//
//  PaySingleModel.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/13.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "PaySingleModel.h"
#import "AddGoodsModel.h"

@implementation PaySingleModel

- (instancetype )initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
//        self.shopName = dict[@"shopName"];
//        NSMutableArray *arr = [NSMutableArray array];
//        for (NSDictionary *goodsDict in dict[@"productList"]) {
//            AddGoodsModel *model = [AddGoodsModel objectWithDict:goodsDict];
//            [arr addObject:model];
//        }
//        self.productList = arr;
        
        self.freight = [dict[@"freight"] floatValue];
        self.price = [dict[@"price"] floatValue];
        self.productCount = [dict[@"productCount"] integerValue];
        self.productName = dict[@"productName"];
        self.productNo = dict[@"productNo"];
        self.thumbnailUrl = dict[@"thumbnailUrl"];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[PaySingleModel alloc]initWithDict:dict];
}


@end
